package com.jiangcheng.config;


import com.jiangcheng.config.entity.Counter;
import com.jiangcheng.config.entity.Piano;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 类名称：SpringConfig<br>
 * 类描述：<br>
 * 创建时间：2019年01月18日<br>
 *
 * @author jiangcheng
 * @version 1.0.0
 */
@Configuration
public class SpringConfig {

    @Bean
    public Piano piano(){
        return new Piano();
    }

    @Bean(name = "counter")
    public Counter counter(){
        return new Counter(12,"Shake it Off",piano());
    }
}
